Remove aws package extensions#5100
Conversation
|
There was a problem hiding this comment.
Pull request overview
This pull request removes now-unnecessary Yarn packageExtensions for @aws-sdk/* packages after upgrading to newer AWS SDK v3 versions, which eliminates forced retention of older transitive dependencies (notably an older vulnerable fast-xml-parser).
Changes:
- Removed three
@aws-sdk/*entries from.yarnrc.ymlpackageExtensionsthat previously injectedclient-sts/client-sso-oidc. - Regenerated dependency state via
yarn, updatingyarn.lockto drop the legacy AWS SDK v3.696.0 subtree andfast-xml-parser@4.4.1(now onlyfast-xml-parser@5.7.3remains). - Updated
.pnp.cjsaccordingly to reflect the new dependency graph.
Reviewed changes
Copilot reviewed 1 out of 64 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.yarnrc.yml |
Removes AWS SDK packageExtensions that are no longer needed with newer AWS SDK versions. |
yarn.lock |
Drops old AWS SDK v3.696.0 artifacts and removes fast-xml-parser@4.4.1, leaving fast-xml-parser@5.7.3. |
.pnp.cjs |
Updates Yarn PnP runtime state to match the new resolved dependency tree. |
Files not reviewed (1)
- .pnp.cjs: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
#3327 added package extensions in
.yarnrc.ymlfor@aws-sdkto satisfy peer dependencies transitively required by@aws-sdk/client-s3.With newer versions of the AWS SDK (updated in #5098), these extensions are no longer necessary because the credential packages used by
@aws-sdk/client-s3no longer declare peer dependencies on@aws-sdk/client-stsand@aws-sdk/client-sso-oidc.Furthermore, these extensions are keeping around an old vulnerable version of
fast-xml-parserwhich prevents https://github.com/smartcontractkit/external-adapters-js/security/dependabot/421 from being fixed.Changes
@aws-sdkpackage extensions from.yarnrc.yml.yarn.Steps to Test
Quality Assurance
infra-k8sconfiguration file.adapter-secretsconfiguration file.test-payload.jsonfile with relevant requests.feature/x,chore/x,release/x,hotfix/x,fix/x) or is created from Jira.